package com.sora.sora.server.mapper;

import com.sora.sora.common.model.entity.ImgEntity;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ImgMapper {

    int getCountByTag(int tag);

    int getCount();

    int delImg(int id);

    int delImgTag(int imgId);

    List<ImgEntity> queryAll();

    List<ImgEntity> queryByUploader(int uid);

    List<ImgEntity> queryByName(String name);

    List<ImgEntity> queryByTag(int tag);

    int queryUploaderById(int id);


}
